package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.dto.DeviceInfoDTO;
import com.zb.dto.QuotaAllInfo;
import com.zb.dto.QuotaDTO;
import com.zb.entity.TbQuotaModel;

import java.util.List;
import java.util.Map;


/**
 * @ClassName TbQuotaService
 * @Description 服务接口
 * @Author xm
 * @Date 2025/03/25 11:30
 **/
public interface TbQuotaService extends IService<TbQuotaModel> {

    /**
     * 解析指标
     * @param topic
     * @param payloadMap
     * @return
     */
    DeviceInfoDTO analysis(String topic, Map<String,Object> payloadMap);

    /**
     * 将解析之后的诗句存储到influxdb
     * @param quotaList
     */
    void saveQuotaToInflux(List<QuotaDTO> quotaList);

    /**
     * 根据设备id查询最新指标
     */

    List<QuotaAllInfo> getLastQuotaList(String deviceId);
}
